# coding=utf-8
import random


class UserPwd(object):
    def __init__(self):
        self.user = ""
        self.pwd = ""

    @classmethod
    def get_userNameAndPassword(self):
        # 8位用户名及6位密码
        
        self.user = ''.join(
            random.sample("1234567890abcdefghijklmnopqrstuvwxyz_",
                          # ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_+=-><:}{?/
                          random.randint(6, 12)))
        self.pwd = ''.join(
            random.sample("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", random.randint(6, 16)))
        return self.user, self.pwd
